<template>
  <dv-border-box-11 title="个人信息">
    <div class="box-up row" style="display: flex;justify-content: center">
      <div class="col-4" style="height: 100%;display: flex;align-items:center">
        <img class="image" :src="image">
      </div>
      <div class="col-6 column">
        <div class="col-2" style="margin-top: 25%">姓名：{{name}}</div>
        <div class="col-2">加入时间：{{joinTime}}</div>
        <div class="col-2">工作时间：{{unitTime}}</div>
        <div class="col-2">工作单位：{{workTime}}</div>
      </div>
    </div>
  </dv-border-box-11>
</template>

<script>
export default {
  name: 'businessCard',
  props: {
    image: {
      type: String,
      required: true
    },
    name: {
      type: String,
      required: false,
      default: '无名'
    },
    joinTime: {
      type: String,
      required: false,
      default: '未知'
    },
    unitTime: {
      type: String,
      required: false,
      default: '未知'
    },
    workTime: {
      type: String,
      required: false,
      default: '未知'
    }
  }
}
</script>

<style scoped>
.box-up{
  height: 100%;
  width: 100%;
}
.image{
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-top: 30%;
}
</style>
